﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using WoChu.CF.Base;
using WoChu.RfClient.Entity;

namespace WoChu.RfClient.Duty
{
    [ServiceName(Name = "Duty")]
    public interface IDuty
    {
        [Mapping(MethodUrl = "IDuty/GetPDAWarehouse?warehouseDate={0}")]
        OutPutParams<List<WarehouseInfo>> GetPDAWarehouse(string warehouseDate);

        //[Mapping(MethodUrl = "IDuty/UpdatePDAWarehouseState/{0}/{1}")]
        [Mapping(MethodUrl = "IDuty/UpdatePDAWarehouseState?warehouseDate={0}&userID={1}")]
        int UpdatePDAWarehouseState(string warehouseDate, string userID);

        [Mapping(MethodUrl = "IDuty/UpdatePDAWarehouseQty?userID={0}")]
        int UpdatePDAWarehouseQty(string userID, List<WarehouseInfo> lstWarehouse);

        [Mapping(MethodUrl = "IDuty/GetPDAWarehouseName?userID={0}")]
        List<string> GetPDAWarehouseName(string userID);

        [Mapping(MethodUrl = "IDuty/GetPDAPickBatchNo?userID={0}")]
        List<string> GetPDAPickBatchNo(string userID);

        [Mapping(MethodUrl = "IDuty/GetPDAPickInfo?batchNo={0}&warehouseName={1}&userID={2}")]
        PickInfo GetPDAPickInfo(string batchNo, string warehouseName, string userID);

        [Mapping(MethodUrl = "IDuty/GetPDAPickItemInfo?pickID={0}")]
        List<PickItemInfo> GetPDAPickItemInfo(string pickID);

        [Mapping(MethodUrl = "IDuty/SubmitPDAPick?pickID={0}&batchDate={1}&state={2}&userID={3}")]
        bool SubmitPDAPick(string pickID, string batchDate, string state, string userID, List<PickItemInfo> lstPickItem);

        [Mapping(MethodUrl = "IDuty/SavePDAPick?userID={0}")]
        bool SavePDAPick(string userID, List<PickItemInfo> lstPickItem);


    }
}
